@layout("/common/_container.html"){
<style>
    td {
        border: 1px solid #cccccc;
        text-align: center;
        padding: 5px;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="policyPlanInfoForm">
            <input type="hidden" id="status" value="${status}">
            <input type="hidden" id="id" value="${item.id}">
            <input name="formToken" type="hidden" value="${session.formToken}" />
            <div class="row">
                <div class="col-sm-9">
                    <#input id="policyPlanCode" name="保障计划代码" maxlength="4" value="${item.policyPlanCode}" />
                    <#input id="policyPlanName" name="保障计划名称" maxlength="50" value="${item.policyPlanName}" />
                    <div class="form-group">
                        <label class="col-sm-3 control-label">备注</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="comment" maxlength="500">${item.comment}</textarea>
                        </div>
                    </div>
                </div>

            @if(status == 1){
                <div class="row btn-group-m-t">
                    <div class="col-sm-12" style="text-align: center;">
                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="PolicyPlanInfoDlg.editSubmit()"/>
                        <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="PolicyPlanInfoDlg.close()"/>
                    </div>
                </div>
            @}else{
                <div class="col-sm-9">
                    <label class="col-sm-3 control-label">已选险种</label>
                </div>
                <div class="col-sm-12">
                    <div class="col-sm-2"></div>
                    <table class="col-sm-8">
                        <tr>
                            <td>险种代码</td>
                            <td>险种名称</td>
                            <td>保额（元）</td>
                            <td>保费（元）</td>
                        </tr>
                        @for(planInsuranceKind in planInsuranceKinds!){
                            <tr>
                                <td>${planInsuranceKind.insurance_kind_code}</td>
                                <td>${planInsuranceKind.insurance_kind_name}</td>
                                <td>${planInsuranceKind.amount_limit,numberFormat="#,###.00"}</td>
                                <td>${planInsuranceKind.amount,numberFormat="#,###.00"}</td>
                            </tr>
                        @}
                    </table>
                </div>

            @}
            </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/system/policyPlan/policyPlan_info.js"></script>
@}
